package com.mju.feign.clients;


import com.mju.controller.common.JsonResult;
import com.mju.pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("product-service")
public interface ProductClient {
    @GetMapping("/products/{pid}/details")
    JsonResult<Product> getById(@PathVariable("pid") Integer pid);
}
